package com.swordliu.facebook.dao.base;

import com.swordliu.facebook.pojo.entity.Permission;

import java.io.Serializable;

/**
 * Created by SwordLiu on 2017-07-03.
 */
public interface BaseMapper<T> {

    int insert(T t) throws Exception;

    int insertSelective(T t);

    int deleteByPrimaryKey(Long id) throws Exception;

    T selectByPrimaryKey(Long id) throws Exception;

    int updateByPrimaryKeySelective(T t);

    int updateByPrimaryKey(T t) throws Exception;

}
